package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/** 广告实体类（启动页广告/首页广告）
  <p>
  <b>History:</b>
  <table border="1">
  <tr>
  <th>Date</th>
  <th>Operator</th>
  <th>Memo</th>
  </tr>
  <tr>
  <td>2020/12/18 14:00</td>
  <td>liman</td>
  <td>Create</td>
  </tr>
  </table>

  @author liman
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_ADVERTISEMENT")
public class Advertisement implements Serializable {

    /**
     * 序列化
     */
    private static final long serialVersionUID = 7607003369469337111L;

    /**
     * 主键
     */
    @TableId(value = "ADVERTISEMENT_ID", type = IdType.ASSIGN_UUID)
    private String advertisementId;

    /**
     * 创建人id
     */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 修改人id
     */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "MEMO")
    private String memo;

    /**
     * 广告名称
     */
    @TableField(value = "ADVERTISEMENT_NAME")
    private String advertisementName;

    /**
     * 广告类型(1：启动页 2：首页)
     */
    @TableField(value = "ADVERTISEMENT_TYPE")
    private String advertisementType;

    /**
     * 发布状态(未发布1；已发布2；已结束3；已取消4；已撤销5)
     */
    @TableField(value = "PUBLISH_STATUS")
    private String publishStatus;

    /**
     * 广告跳转链接
     */
    @TableField(value = "ADVERTISEMENT_URL")
    private String advertisementUrl;

    /**
     * 发布时间
     */
    @TableField(value = "PUBLISH_TIME", updateStrategy = FieldStrategy.IGNORED)
    private Date publishTime;

    /**
     * 撤销时间
     */
    @TableField(value = "REVOKE_TIME")
    private Date revokeTime;

    /**
     * 删除状态（0：false，1：true）
     */
    @TableLogic(value = "0", delval = "1")
    @TableField(value = "IS_DELETE")
    private Boolean deleteFlag = false;

}

